package com.example.asus.yuejian_10;

import com.example.asus.yuejian_10.bean.CCourse;
import com.example.asus.yuejian_10.bean.ClubList;
import com.example.asus.yuejian_10.bean.ClubVideo;
import com.example.asus.yuejian_10.bean.Train;

import com.example.asus.yuejian_10.bean.User;
import com.example.asus.yuejian_10.bean.UserCollect;
import com.example.asus.yuejian_10.bean.UserInfo;
import com.example.asus.yuejian_10.bean.UserOrder;
import com.example.asus.yuejian_10.bean.UserShaitu;
import com.example.asus.yuejian_10.bean.VideoList;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;


/**
 * Created by asus on 2017/10/17.
 */


public interface RetrofitSeveice {
    @GET("lists/mod/club")
    Call<List<ClubList>> clublist(
            /*@Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address,
            @Query("comment") String comment*/
    );

    @GET("get/mod/club")
    Call<ClubList> getclub(
            @Query("id") String id
    );

    //get/mod/club/SessionID/2ul9sj8vlfoZ122e1s98048k2/ related/1/id/1/map/Clubfans

    @GET("get/mod/club")
    Call<CCourse> getclass(
            @Query("SessionID") String username
            );

   /* Call<List<CCourse.ClubcourseEntity>> getclass(
            @Query("") String username,
            @Query("related") String userpass,
            @Query("id") String mobilenum,
            @Query("map") String comment

    );*/

    @GET("get/mod/club/SessionID/2ul9sj8vlfoZ122e1s98048k2/related/1/map/Clubvideo")
    Call<VideoList> getvideo(
            //@Query("SessionID") String username,
            //@Query("related") String userpass,
            @Query("id") String mobilenum
            //@Query("map") String comment

    );
    //俱乐部视频
    @GET("get/mod/club/SessionID/2ul9sj8vlfofj122e1s98048k2/related/1/map/Clubvideo")
    Call<ClubVideo> getClubVideo(
            @Query("id") String id
            //@Query("map") String map
            );


    //lists/mod/training
    @GET("lists/mod/training")
    Call<List<Train>> trainlist();

    @GET("login")
    Call<User> getLogin(
            @Query("tel") String tel,
            @Query("password") String pwd);

    //注册
    @GET("reg")
    Call<User> register(
            @Query("tel") String tel,
            @Query("password") String password);

    @GET("lists/mod/training")
    Call<List<Train>> getTrainList();

    //获取线下训练
    @GET("lists/mod/train")
    Call<List<TrainInfo>> gettrainList();

    //线下训练列表
    @GET("lists/mod/{mod}/SessionID/{SessionID}/degree/{degree}")
    Call<List<TrainInfo>> getallTrain(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("degree") String degree
    );

    //获取训练详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
    Call<TrainInfo> getTraininfo(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );


    //训练报名
    @GET("create/mod/signcourse/participantname/{participantname}/train_id/{train_id}/participanttel/{participanttel}/adultnum/{adultnum}/" +
            "paytype/1/pay/{pay}/paynotice/wcc/userid/{userid}/SessionID/{SessionID}")
    Call<Integer> signTrain(
            //@Path("mod") String mod,
            @Path("participantname") String participantname,
            @Path("train_id") String train_id,
            @Path("participanttel") String participanttel,
            @Path("adultnum") String adultnum,
            //@Path("paytype") String paytype,
            @Path("pay") String pay,
            //@Path("paynotice") String paynotice,
            @Path("userid") int userid,
            @Path("SessionID") String SessionID
    );

    //个人中心获取信息
    @GET("getmine/SessionID/2ul9sj8vlfoZ122e1s98048k2//userid/{userid}")
    Call<User> getuserinfo(
            //@Path("SessionID") String SessionID,
            @Path("userid") int userid
    );

    //修改用户
    @GET("fuserphoto/SessionID/2ul9sj8vlfoZ122e1s98048k2/userid/{userid}/user_name/{user_name}/password/{password}")
    Call<Integer> updateuser(
            //@Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("user_name") String username,
            @Path("password") String password
    );


    //修改头像
    @GET("fuserphoto/SessionID/{SessionID}/userid/{userid}")
    Call<User> updatephoto(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid
    );
    //修改昵称
    @GET("updatename/SessionID/{SessionID}/userid/{userid}/user_name/{user_name}")
    Call<UserInfo> updatename(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("user_name") String username
    );
    //修改密码
    @GET("updatepass/SessionID/{SessionID}/userid/{userid}/password/{password}")
    Call<Integer> updatepwd(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("password") String password
    );
    //获取晒图列表
    @GET("lists/mod/{mod}/SessionID/{SessionID}/userid/{userid}")
    Call<List<UserShaitu>> getusershaitu(
            @Path("mod") String mod,
            @Path("SessionID") String SessionID,
            @Path("userid") int userid

    );
    //获取关注列表
    @GET("lists/mod/{mod}/SessionID/{SessionID}/userid/{userid}")
    Call<List<UserCollect>> getcollect(
            @Path("mod") String mod,
            @Path("SessionID") String SessionID,
            @Path("userid") int userid

    );
    //获取全部订单列表
    @GET("lists/mod/sign/listorder/update_time/userid/{userid}/SessionID/2ul9sj8vlfoZ122e1s98048k2}")
    Call<List<UserOrder>> getallorder(
            //@Path("mod") String mod,
            @Path("userid") int userid
            //@Path("SessionID") String SessionID
    );
    //获取已完成或者未参加订单
    @GET("lists/mod/{mod}/listorder/update_time/userid/{userid}/vstate/{vstate}/SessionID/{SessionID}")
    Call<List<UserOrder>> getordertype(
            @Path("mod") String mod,
            @Path("userid") int userid,
            @Path("vstate") int vstate,
            @Path("SessionID") String SessionID
    );
    //获取俱乐部的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getClubState(
            @Path("fan_id") String fan_id,
            @Path("userid") int userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );

    //关注俱乐部
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeClubState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );
    //取消关注俱乐部
    @GET("delete/mod/{mod}/club_id/{club_id}/user_id/{user_id}/SessionID/{SessionID}")
    Call<Integer> Nocollect(
            @Path("mod") String mod,
            @Path("club_id") String club_id,
            @Path("user_id") int user_id,
            @Path("SessionID") String SessionID
    );

    //获取大师的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getTeaState(
            @Path("fan_id") String fan_id,
            @Path("userid") int userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );

    //关注大师
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeTeaState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );



}
